package com.yang.springboot.service.impl;

import com.yang.springboot.mapper.StudentMapper;
import com.yang.springboot.model.Student;
import com.yang.springboot.service.IStudentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author yanwei.yang
 * @date 2021/11/15 16:31
 * @description:
 */
@Service
public class StudentServiceImpl implements IStudentService {

    @Resource
    private StudentMapper studentMapper;

    @Override
    public Student getById(Integer id) {
        return studentMapper.selectByPrimaryKey(id);
    }
}
